<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">

	<ui:composition template="../template.xhtml">
		<ui:define name="conteudo">
			<h:form id="combustivelForm">
			<h:inputHidden value="#{combustivelMB.combustivel.id}" />
			<p:messages id="message" showDetail="true" showSummary="false"/>
				<h:panelGrid columns="4">
					<h:outputLabel value="Nome: " />
					<p:inputText value="#{combustivelMB.combustivel.dsCombustivel}" required="true" requiredMessage="Nome é obrigatório."/>
					<p:commandButton value="Salvar" action="#{combustivelMB.saveOrUpdate}" update="combustivelForm"/>
					<p:commandButton value="Voltar" action="pretty:combustivel" immediate="true"/>
				</h:panelGrid>
			</h:form>
		</ui:define>
	
	</ui:composition>
</html>